﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using mvLibrary;

namespace fenk
{
    public partial class test : BaseForm
    {
        public bool SuccessValidation = false;
        public test()
        {
            InitializeComponent();
            txtPassword.Focus();
            this.toolBox.Visible = false;
        }

        private void btnAceptar_Click_1(object sender, EventArgs e)
        {
            if (!this.IsValidPassword(txtPassword.Text))
            {
                MessageBox.Show("Contraseña incorrecta", "Validar contraseña");
                txtPassword.Focus();
            }
            else
            {
                SuccessValidation = true;
                this.Close();
            }

        }

        private void btnCancelar_Click_1(object sender, EventArgs e)
        {
            SuccessValidation = false;
            this.Close();
        }
    }
}
